package net.starwifi.duobao.web.member;

import net.starwifi.duobao.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by Administrator on 2015/6/26.
 */
@Controller("wapSecurityController")
@RequestMapping(value = "/member/security")
public class SecurityController {


    @Autowired
    MemberService memberService;


    /**
     * 查看
     */
    @RequestMapping(method = RequestMethod.GET)
    public String view(Model model) {
        model.addAttribute("member",memberService.getCurrent());
        return "/member/security/main";
    }

}
